//
//  KLILogin.h
//  KoalaUtilKit
//
//  Created by Tommy on 15/1/13.
//  Copyright (c) 2015年 Koala Team. All rights reserved.
//

#import <Foundation/Foundation.h>

@class RACSignal,RACCommand;

@protocol KLILogin <NSObject>

@property(nonatomic,assign,readonly)BOOL logining;
@property(nonatomic,assign,readonly)BOOL  hasLogin;


- (RACSignal*)autoLogin;
- (RACSignal*)loginWith:(NSString*)userName password:(NSString*)password;
- (RACSignal*)loginWith:(NSString *)userName password:(NSString *)password checkCode:(NSString*)checkCode checkCodeId:(NSString*)checkCodeId;
- (RACSignal*)refreshCheckCodeSignal;
- (RACSignal*)logoutSignal;
- (RACCommand*)autoLoginCommand;
- (RACCommand*)refreshCheckCodeCommand;
- (RACSignal*)hasLoginSignal;


@end


